package com.beamfield.dao.sys;

import com.beamfield.model.RoleBtn;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface RoleBtnMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoleBtn record);

    int insertSelective(RoleBtn record);

    RoleBtn selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoleBtn record);

    int updateByPrimaryKey(RoleBtn record);

    int selectByRoleIdAndBtnId(@Param("roleId") String roleId,@Param("btnId") String btnId);

    int deleteByRoleIdAndBtnId(@Param("roleId") String roleId,@Param("btnId") String btnId);

    List<Long> selectByBtnPageIdAndModelId(@Param("btnPageId") String btnPageId,@Param("modelId") Long modelId,@Param("beamId") String beamId);

    List<Long> selectByModelId(@Param("beamId") String beamId,@Param("modelId") Long modelId);

    List<Long> selectByWorkdeptList(@Param("workdeptList") List<String> workdeptList,@Param("beamId") Long beamId, @Param("lbeamId") String lbeamId);

    Long selectByEcode(@Param("ecode") String ecode,@Param("beamId") String beamId);

    List<Long> selectByName(@Param("name") String name,@Param("beamId") String beamId);
}